package cn.jd.system.mapper;

import cn.jd.system.domain.RoleMenu;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RoleMenuMapper {
    @Select("Select * from t_role_menu")
    List<RoleMenu> findAll();

    void addRoleMenu(@Param("id") Long id,@Param("ids") List<Long> menus);
    @Delete("delete from t_role_menu where role_id=#{id}")
    void removeByRoleId(Long id);

}
